if (!!window.ActiveXObject || "ActiveXObject" in window) {
  var downloadChrome = 'https://www.google.cn/intl/zh-CN/chrome/'
  var body = document.body
  body.style.background = 'url(/IE/bg.png) 0 0 no-repeat'
  body.style.width = '100vw'
  body.style.height = '100vh'
  body.style.padding = 0
  body.style.margin = 0
  var ie = document.createElement('div')
  ie.style.color = '#fff'
  ie.style.width = '20%'
  ie.style.position = 'absolute'
  ie.style.top = '40%'
  ie.style.left = '20%'
  ie.style.transform = 'translateY(-50%)'
  ie.style.textAlign = 'center'
  var h1 = document.createElement('h1')
  h1.innerText = '当前浏览器版本较低，建议使用Chrome浏览器'
  h1.style.marginBottom = '100px'
  var btn = document.createElement('div')
  btn.innerText = '点击下载'
  btn.style.color = '#000'
  btn.style.padding = '10px 0'
  btn.style.width = '120px'
  btn.style.margin = '0 auto'
  btn.style.cursor = 'pointer'
  btn.style.background = '#fff'
  btn.style.borderRadius = '30px'
  btn.onclick = function () {
    window.open(downloadChrome)
  }
  ie.appendChild(h1)
  ie.appendChild(btn)
  body.appendChild(ie)
}